.class public abstract Les/li;
.super Ljava/lang/Object;
.source "AbsFilter.java"

# interfaces
.implements Les/ci;


# instance fields
.field private a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field protected b:Ljava/util/concurrent/CopyOnWriteArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/CopyOnWriteArrayList<",
            "Les/bi;",
            ">;"
        }
    .end annotation
.end field

.field protected c:Ljava/util/concurrent/atomic/AtomicInteger;

.field protected d:Les/ei;

.field protected e:I

.field protected final f:Ljava/lang/String;

.field protected final g:Les/fi;


# direct methods
.method public constructor <init>(Les/fi;Ljava/util/List;I)V
    .locals 2
    .param p3    # I
        .annotation build Landroidx/annotation/StringRes;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/fi;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;I)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v0, p0, Les/li;->c:Ljava/util/concurrent/atomic/AtomicInteger;

    .line 3
    iput v1, p0, Les/li;->e:I

    .line 4
    invoke-static {p2}, Les/gi;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object p2

    iput-object p2, p0, Les/li;->a:Ljava/util/List;

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p2

    const v0, 0x7f11025a

    .line 6
    invoke-virtual {p2, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Les/li;->f:Ljava/lang/String;

    .line 7
    new-instance v0, Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;-><init>()V

    iput-object v0, p0, Les/li;->b:Ljava/util/concurrent/CopyOnWriteArrayList;

    .line 8
    iput-object p1, p0, Les/li;->g:Les/fi;

    .line 9
    new-instance p1, Les/ei;

    invoke-interface {p0}, Les/ci;->getId()I

    move-result v0

    invoke-direct {p1, v0}, Les/ei;-><init>(I)V

    iput-object p1, p0, Les/li;->d:Les/ei;

    .line 10
    invoke-virtual {p1, v1}, Les/ei;->d(I)V

    .line 11
    iget-object p1, p0, Les/li;->d:Les/ei;

    invoke-interface {p0}, Les/ci;->getId()I

    move-result v0

    invoke-virtual {p1, v0}, Les/ei;->a(I)V

    .line 12
    iget-object p1, p0, Les/li;->d:Les/ei;

    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Les/ei;->d(Ljava/lang/String;)V

    .line 13
    iget-object p1, p0, Les/li;->d:Les/ei;

    invoke-virtual {p2, p3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Les/ei;->b(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 13
    monitor-enter p0

    .line 14
    :try_start_0
    iget v0, p0, Les/li;->e:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Les/li;->e:I

    .line 15
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0
.end method

.method public a(Lcom/estrongs/android/cleaner/scandisk/f;)V
    .locals 4

    if-nez p1, :cond_0

    return-void

    .line 3
    :cond_0
    iget v0, p1, Lcom/estrongs/android/cleaner/scandisk/f;->c:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    .line 4
    monitor-enter p0

    .line 5
    :try_start_0
    iget p1, p0, Les/li;->e:I

    sub-int/2addr p1, v1

    iput p1, p0, Les/li;->e:I

    if-gtz p1, :cond_1

    .line 6
    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object p1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, " finish"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    iget-object p1, p0, Les/li;->b:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/bi;

    .line 8
    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "finish on: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    iget-object v1, p0, Les/li;->d:Les/ei;

    invoke-interface {v0, v1}, Les/bi;->a(Les/ei;)V

    goto :goto_0

    .line 10
    :cond_1
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1

    .line 11
    :cond_2
    invoke-virtual {p0, p1}, Les/li;->c(Lcom/estrongs/android/cleaner/scandisk/f;)Z

    move-result v0

    if-nez v0, :cond_3

    return-void

    .line 12
    :cond_3
    invoke-virtual {p0, p1}, Les/li;->b(Lcom/estrongs/android/cleaner/scandisk/f;)V

    return-void
.end method

.method public a(Les/bi;)V
    .locals 3

    if-nez p1, :cond_0

    return-void

    .line 1
    :cond_0
    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "add callback:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Les/li;->b:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method protected abstract a(Les/ei;Lcom/estrongs/android/cleaner/scandisk/f$a;)V
.end method

.method protected abstract a(Lcom/estrongs/android/cleaner/scandisk/f$a;)Z
.end method

.method protected abstract b()Ljava/lang/String;
.end method

.method protected b(Lcom/estrongs/android/cleaner/scandisk/f;)V
    .locals 9

    .line 5
    iget-object v0, p1, Lcom/estrongs/android/cleaner/scandisk/f;->f:[Lcom/estrongs/android/cleaner/scandisk/f$a;

    const/4 v1, 0x0

    .line 6
    :goto_0
    iget v2, p1, Lcom/estrongs/android/cleaner/scandisk/f;->g:I

    if-ge v1, v2, :cond_2

    .line 7
    aget-object v2, v0, v1

    .line 8
    invoke-virtual {p0, v2}, Les/li;->a(Lcom/estrongs/android/cleaner/scandisk/f$a;)Z

    move-result v3

    if-nez v3, :cond_0

    goto :goto_2

    .line 9
    :cond_0
    iget-object v3, p0, Les/li;->c:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I

    move-result v3

    .line 10
    new-instance v4, Les/ei;

    iget-object v5, p0, Les/li;->d:Les/ei;

    invoke-virtual {v5}, Les/ei;->j()I

    move-result v5

    const/4 v6, 0x1

    add-int/2addr v5, v6

    iget-object v7, p0, Les/li;->d:Les/ei;

    invoke-direct {v4, v3, v5, v7}, Les/ei;-><init>(IILes/ei;)V

    const/4 v3, 0x4

    .line 11
    invoke-virtual {v4, v3}, Les/ei;->d(I)V

    .line 12
    invoke-interface {p0}, Les/ci;->getId()I

    move-result v3

    invoke-virtual {v4, v3}, Les/ei;->a(I)V

    .line 13
    iget-object v3, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->b:Ljava/lang/String;

    invoke-virtual {v4, v3}, Les/ei;->d(Ljava/lang/String;)V

    .line 14
    iget-object v3, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->b:Ljava/lang/String;

    invoke-virtual {v4, v3}, Les/ei;->b(Ljava/lang/String;)V

    .line 15
    iget-object v3, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->a:Ljava/lang/String;

    invoke-virtual {v4, v3}, Les/ei;->c(Ljava/lang/String;)V

    .line 16
    iget-wide v7, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->d:J

    invoke-virtual {v4, v7, v8}, Les/ei;->d(J)V

    .line 17
    iget-wide v7, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->e:J

    invoke-virtual {v4, v7, v8}, Les/ei;->b(J)V

    .line 18
    iget-wide v7, p1, Lcom/estrongs/android/cleaner/scandisk/f;->a:J

    invoke-virtual {v4, v7, v8}, Les/ei;->c(J)V

    .line 19
    iget-boolean v3, p1, Lcom/estrongs/android/cleaner/scandisk/f;->e:Z

    invoke-virtual {v4, v3}, Les/ei;->b(Z)V

    .line 20
    invoke-virtual {p0, v4, v2}, Les/li;->a(Les/ei;Lcom/estrongs/android/cleaner/scandisk/f$a;)V

    .line 21
    iget-object v3, p0, Les/li;->b:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v3}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/bi;

    .line 22
    invoke-interface {v5, v4}, Les/bi;->b(Les/ei;)V

    goto :goto_1

    .line 23
    :cond_1
    iput-boolean v6, v2, Lcom/estrongs/android/cleaner/scandisk/f$a;->f:Z

    .line 24
    iput-boolean v6, p1, Lcom/estrongs/android/cleaner/scandisk/f;->d:Z

    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    return-void
.end method

.method public b(Les/bi;)V
    .locals 3

    .line 1
    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, " check finish status"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget v0, p0, Les/li;->e:I

    if-gtz v0, :cond_0

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "finish on: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    iget-object v0, p0, Les/li;->d:Les/ei;

    invoke-interface {p1, v0}, Les/bi;->a(Les/ei;)V

    :cond_0
    return-void
.end method

.method public c(Les/bi;)V
    .locals 3

    .line 1
    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "remove callback:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Les/li;->b:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method protected abstract c(Lcom/estrongs/android/cleaner/scandisk/f;)Z
.end method

.method public getPaths()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/li;->a:Ljava/util/List;

    return-object v0
.end method

.method public getResult()Les/ei;
    .locals 1

    .line 1
    iget-object v0, p0, Les/li;->d:Les/ei;

    return-object v0
.end method

.method public start()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, " start..."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Filter:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Les/li;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
